package com.zhangdi.dwcache.redis.dao;

import java.util.concurrent.TimeUnit;

/**
 * Created by zhangdi on 2021/01/18 11:26:32.
 */
public interface RCacheBaseDao<K, V> {
    boolean save(K key, V data);
    boolean saveByExpire(K key, V data, long time, TimeUnit unit);
    boolean remove(K key);
    V get(K key);
}
